package com.meals.system.service;

import com.meals.system.api.system.vo.WhitesMealIndexConfigGoodsVO;
import com.meals.system.entity.IndexConfig;
import com.meals.system.util.PageQueryUtil;
import com.meals.system.util.PageResult;

import java.util.List;

/**
 * Description:
 * Parm:
 * return:
 * Author: Chen
 * Date: 2021/12/4
 */
public interface WhitesMealIndexConfigService {

    /**
     * 返回固定数量的首页配置商品对象（首页调用）
     * @param configType
     * @param number
     * @return
     */
    List<WhitesMealIndexConfigGoodsVO> getConfigGoodsesForIndex(int configType, int number);

    /**
     * 后台分页
     * @param pageUtil
     * @return
     */
    PageResult getConfigsPage(PageQueryUtil pageUtil);

    String saveIndexConfig(IndexConfig indexConfig);

    String updateIndexConfig(IndexConfig indexConfig);

    IndexConfig getIndexConfigById(Long id);

    Boolean deleteBatch(Long[] ids);


}
